/*
 * Machine.java
 *
 * Created on 25 mai 2007, 11:31
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 * Entity class Machine
 * 
 * @author geoffroy
 */
@Entity
public class Machine implements Serializable
{

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int idMachine;
    private int Age;
    
    
    /** Creates a new instance of Machine */
    public Machine()
    {
        this.Age = 0;
    }

    public int getIdMachine()
    {
        return idMachine;
    }

    public void setIdMachine(int idMachine)
    {
        this.idMachine = idMachine;
    }

    public int getAge()
    {
        return Age;
    }

    public void setAge(int Age)
    {
        this.Age = Age;
    }


    
}
